package com.example.sfm.pojo.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;

@Data
@Schema(name = "奖惩记录视图导出对象", description = "用于导出学生奖惩记录信息的视图对象")
@Accessors(chain = true)
public class AwardsPunishmentsExportVo {
    @ExcelProperty("奖惩名称")
    @Schema(description = "奖惩的名称")
    private String name;

    @ExcelProperty("学生姓名")
    @Schema(description = "获得奖惩的学生姓名")
    private String studentName;

    @ExcelProperty("类型")
    @Schema(description = "奖惩的类型")
    private String typeStr;

    @ExcelProperty("等级")
    @Schema(description = "奖惩的等级")
    private String levelStr;

    @ExcelProperty("原因")
    @Schema(description = "获得奖惩的原因")
    private String reason;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("颁发日期")
    @Schema(description = "奖惩的颁发日期，格式：yyyy-MM-dd")
    private LocalDate issuedDate;
}